@@ -24,7 +24,7 @@ define('port', default=8001, help='run on the given port', type=int) |
||
24 | 24 |
options.parse_command_line() |
25 | 25 |
|
26 | 26 |
|
27 |
-ROOT_PATH = '/home/work/minipai2' |
|
27 |
+ROOT_PATH = '/minipai2' |
|
28 | 28 |
|
29 | 29 |
|
30 | 30 |
conn = sqlite3.connect('minipai2.db') |
@@ -1,2 +1,2 @@ |
||
1 |
-version=0.0.1 |
|
2 |
-deldb=false |
|
1 |
+version=0.0.3 |
|
2 |
+deldb=true |
@@ -22,7 +22,7 @@ if [ "$oldversion" != "$version" ] && [ "$deldb" = "true" ]; then |
||
22 | 22 |
fi |
23 | 23 |
|
24 | 24 |
# Start Server |
25 |
-nohup python main.py --port=8002 &>/tmp/minipai2.log & |
|
25 |
+nohup python main.py --port=8002 &>/ramfs/minipai2.log & |
|
26 | 26 |
|
27 | 27 |
# Change Current Directory |
28 | 28 |
cd - |
@@ -13,8 +13,8 @@ STATUS_CODE_MSG = { |
||
13 | 13 |
|
14 | 14 |
DETECT_LOGS = ( |
15 | 15 |
# ('LOG FILE PATH', 'VALID STATUS CODE') |
16 |
- ('/tmp/getpic.log', '100'), |
|
17 |
- ('/tmp/main.log', '200') |
|
16 |
+ ('/ramfs/getpic.log', '100'), |
|
17 |
+ ('/ramfs/main.log', '200') |
|
18 | 18 |
) |
19 | 19 |
|
20 | 20 |
|